import torch
import torch.nn as nn
from loss.base_loss import Loss

class BCELoss(Loss):
    def __init__(self):
        super(BCELoss, self).__init__()
        # Binary Cross Entropy Loss
        # This loss is typically used for binary classification tasks.
        self.loss_fn = nn.BCELoss()

    def forward(self, preds: torch.Tensor, targets: torch.Tensor):
        return self.loss_fn(preds, targets)